package com.thundersoft.pickcolor.viewholder;


import android.view.View;

import com.thundersoft.pickcolor.R;
import com.thundersoft.pickcolor.bean.Color;
import com.thundersoft.pickcolor.utils.GlideImageLoader;
import com.youth.banner.Banner;

import java.util.List;

public class TypeZeroViewHolder extends TypeAbstractViewHolder {

    public Banner banner;
    private List<String> images;
    public TypeZeroViewHolder(View itemView) {
        super(itemView);
        banner = itemView.findViewById(R.id.banner);

    }

    @Override
    public void bindHolder(Color color) {
        images = color.getPicPath();

        // 设置图片加载器
        banner.setImageLoader(new GlideImageLoader());

        // 设置图片集合
        banner.setImages(images);
        banner.start();
    }
}
